/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Winner
 */
@Embeddable
public class TblProjectDetailPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "prID")
    private int prID;
    @Basic(optional = false)
    @NotNull
    @Column(name = "elID")
    private int elID;
    @Basic(optional = false)
    @NotNull
    @Column(name = "pdNo")
    private int pdNo;

    public TblProjectDetailPK() {
    }

    public TblProjectDetailPK(int prID, int elID, int pdNo) {
        this.prID = prID;
        this.elID = elID;
        this.pdNo = pdNo;
    }

    public int getPrID() {
        return prID;
    }

    public void setPrID(int prID) {
        this.prID = prID;
    }

    public int getElID() {
        return elID;
    }

    public void setElID(int elID) {
        this.elID = elID;
    }

    public int getPdNo() {
        return pdNo;
    }

    public void setPdNo(int pdNo) {
        this.pdNo = pdNo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) prID;
        hash += (int) elID;
        hash += (int) pdNo;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TblProjectDetailPK)) {
            return false;
        }
        TblProjectDetailPK other = (TblProjectDetailPK) object;
        if (this.prID != other.prID) {
            return false;
        }
        if (this.elID != other.elID) {
            return false;
        }
        if (this.pdNo != other.pdNo) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.aptech.entities.TblProjectDetailPK[ prID=" + prID + ", elID=" + elID + ", pdNo=" + pdNo + " ]";
    }
    
}
